<?xml version="1.0" encoding="iso-8859-1" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:tr="http://myfaces.apache.org/trinidad">
<f:view>
    <tr:document title="Maak een Coureur">
        <tr:form id="makeProfessionalCyclistForm">
            <tr:messages globalOnly="true"/>
            <tr:panelFormLayout>
                <tr:selectOneChoice label="Persoon" unselectedLabel="Selecteer een persoon" valuePassThru="true"
                                    value="#{makeProfessionalCyclistDialog.makeProfessionalCyclistMAO.personId}">
                    <f:selectItems id="personItems" value="#{makeProfessionalCyclistDialog.personSelectItems}"
                                   var="personSelectItem"
                                   itemValue="#{personSelectItem.value}"
                                   itemLabel="#{personSelectItem.label}"/>
                </tr:selectOneChoice>
                <tr:selectOneChoice label="Nationaliteit" unselectedLabel="Selecteer een nationaliteit"
                                    value="#{makeProfessionalCyclistDialog.makeProfessionalCyclistMAO.countryId}"
                                    valuePassThru="true">
                    <f:selectItems id="nationalityItems" value="#{makeProfessionalCyclistDialog.nationalitySelectItems}"
                                   var="nationalitySelectItem"
                                   itemValue="#{nationalitySelectItem.value}"
                                   itemLabel="#{nationalitySelectItem.label}"/>
                </tr:selectOneChoice>
                <f:facet name="footer">
                    <tr:panelButtonBar halign="center">
                        <tr:commandButton text="Maak"
                                          actionListener="#{makeProfessionalCyclistDialog.makeProfessionalCyclist}"/>
                    </tr:panelButtonBar>
                </f:facet>
            </tr:panelFormLayout>
        </tr:form>
    </tr:document>
</f:view>
</html>